package com.nineclock.system.service;

import com.nineclock.common.entity.PageResult;
import com.nineclock.dto.DepartmentOrUserSimpleDTO;
import com.nineclock.dto.SysCompanyUserDTO;
import com.nineclock.dto.SysDepartmentDTO;
import com.nineclock.system.excel.ExcelMember;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SysOrganizationService {
    List<SysCompanyUserDTO> findAllMembers();

    List<SysDepartmentDTO> findDepartment();

    PageResult<SysCompanyUserDTO> findDepartmentUser(Long departmentId, Integer page, Integer pageSize, String keyword);

    List<Long> findDepartmentByCompanyId();

    Integer findAttendAndCompanyUserCount(List<Long> departmentId);

    List<DepartmentOrUserSimpleDTO> findDepartmentSimple( Long departmentId, Integer includeMember);

    void uploadExcel(MultipartFile excelFile);

    void saveExcelUser(List<ExcelMember> excelMembers);

    List<Long> findDepartmentIdByCompanyUserId(Long companyUserId);
}
